package com.mps.heropan.core.exception.file;

import com.mps.heropan.core.exception.StorageSourceException;
import com.mps.heropan.core.util.CodeMsg;

/**
 * 无效的存储源异常
 */
public class InvalidStorageSourceException extends StorageSourceException {

    public InvalidStorageSourceException(String message) {
        super(CodeMsg.STORAGE_SOURCE_NOT_FOUND, null, message);
    }

    public InvalidStorageSourceException(Integer storageId) {
        super(CodeMsg.STORAGE_SOURCE_NOT_FOUND, storageId, CodeMsg.STORAGE_SOURCE_NOT_FOUND.getMsg());
    }

    public InvalidStorageSourceException(Integer storageId, String message) {
        super(CodeMsg.STORAGE_SOURCE_NOT_FOUND, storageId, message);
    }

}
